<form id="loginForm" (submit)="onSubmit(user)">
  <div class="form-group" style="text-align: center;">
    <h1 style="font-size: 1.5rem;">Xianhe-ERP</h1>
  </div>
  <div class="form-group" style="text-align: center;">
    <div class="input-group">
      <span class="input-group-addon">
        <span class="fa fa-user fa-fw"></span>
      </span>
      <input [(ngModel)]="user.username" type="text" class="form-control" name="username" id="username" placeholder="用户名">
    </div>
  </div>
  <div class="form-group" style="text-align: center;">
    <div class="input-group">
      <span class="input-group-addon">
        <span class="fa fa-lock fa-fw"></span>
      </span>
      <input [(ngModel)]="user.password" type="password" class="form-control" name="password" id="password" placeholder="密码">
    </div>
  </div>
  <div class="form-group" style="text-align: center;">
    <button type="submit" class="btn btn-primary form-control">登录</button>
  </div>
</form>
